<?php
namespace Adminx\Model;
use Think\Model;

class ChexingModel extends Model {

    protected $_validate = array (//字段验证
    	array('carName','require','请输入车型', 1),
    	array('brandID','require','请选择品牌', 1),
    	array('brandName','require','请选择品牌', 1),
    	array('year','require','请输入年份', 1),
    );	

    protected $_auto = array ( //自动完成
		array('createTime','time',Model::MODEL_INSERT,'function'),		
		array('updateTime','time',Model::MODEL_BOTH,'function'),
	);

}
?>